package com.cyw.common.utils.converter;

import com.cyw.common.utils.DateUtils;
import org.springframework.core.convert.converter.Converter;

import java.time.LocalDate;

/**
 * @Desc:
 * @Author:cyw
 * @CreateTime: 2020/7/8 18:24
 **/
public class LocalDateConverter implements Converter<String, LocalDate> {

    @Override
    public LocalDate convert(String source) {
        return DateUtils.parseLocalDate(source);
    }
}

    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    